package com.helloniu.wb {

import com.helloniu.wb.managers.DrawingToolManager;

public dynamic class UndoableObject extends Object {
    public function UndoableObject() {
        super();
    }

    public function undo():void {
//        if(this.undoType == "removeTool") {
//            DrawingToolManager.removeTool(this.owner, this.undoParam);
//
//            this.owner.invalidateDisplayList();
//        }
//        else if(this.undoType == "setShapePoints") {
//            this.owner.setShapePoints(this.undoParam);
//            this.owner.invalidateDisplayList();
//        }
    }

    public function redo():void {
//        if(this.redoType == "addTool") {
//            this.owner.addTool(this.undoParam);
//            this.owner.invalidateDisplayList();
//        }
//        else if(this.redoType == "setShapePoints") {
//            this.owner.setShapePoints(this.redoParam);
//            this.owner.invalidateDisplayList();
//        }
    }
}
}